﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TJBHJJ.Models;

namespace TJBHJJ.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
            Home home = new Home();
        /// <summary>
        /// 系统主页面
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            if (home != null)
            {
                return View(home);
            }

            else
                return null;
        }
        public ActionResult Snake()
        {
            return View();
        }
        /// <summary>
        /// 显示公司简介
        /// </summary>
        /// <returns></returns>
        public ActionResult CompanyInfo()
        {

            if (home != null)
            {
                if (Request.IsAjaxRequest())
                {
                    return PartialView("CompanyInfo", home);
                }
                else
                {
                    return View(home);
                }
            }

            else
                return null;
        }

        public ActionResult ContractUs1()
        {
            return View();
        }
        public ActionResult Low()
        {
            return View();
        }
        public ActionResult Ad()
        {
            return View();
        }

    }
}
